import request from '@/utils/request'
//库存列表
export function queryBasicInfo(query) {
  return request({
    url: '/yxl/stock/queryStoStockInfo',
    method: 'get',
    params: query
  });
}
//入库单据获取
export function queryInBillList(query) {
  return request({
    url: '/yxl/bill/queryInBillList',
    method: 'get',
    params: query
  });
}
//入库明细点击单号
export function selectInBillsListByBillsId(query) {
  return request({
    url: '/yxl/bill/selectInBillsListByBillsId',
    method: 'get',
    params: query
  });
}
//入库单据明细
export function queryInBillDetail(query) {
  return request({
    url: '/yxl/bill/queryInBillDetail',
    method: 'get',
    params: query
  });
}
//单据打印
export function printSpell(query) {
  return request({
    url: '/yxl/bill/printSpell',
    method: 'post',
    data: query
  });
}
//单据退回
export function rejectBill(query) {
  return request({
    url: '/yxl/bill/rejectBill',
    method: 'post',
    data: query
  });
}
//出库单据汇总
export function selectBillsList(query) {
  return request({
    url: '/yxl/bill/selectBillsList',
    method: 'get',
    params: query
  });
}
//出库汇总点击单据查看详情
export function selectBillsListByBillsId(query) {
  return request({
    url: '/yxl/bill/selectBillsListByBillsId',
    method: 'get',
    params: query
  });
}
//出库单据明细
export function selectBillsDetailList(query) {
  return request({
    url: '/yxl/bill/selectBillsDetailList',
    method: 'get',
    params: query
  });
}
//出库单据获取
export function queryOutBillList(query) {
  return request({
    url: '/yxl/bill/queryOutBillList',
    method: 'get',
    params: query
  });
}
//库区映射查询
export function findErpMapList(query) {
  return request({
    url: '/basic/stoArea/findErpMapList',
    method: 'get',
    params: query
  });
}
//库区映射仓库
export function getAllWarehouseList(query) {
  return request({
    url: '/warehouse/getAllWarehouseList',
    method: 'get',
    params: query
  });
}
//库区映射库区
export function findAllBasicStoStockData(query) {
  return request({
    url: '/basic/stoStock/findAllBasicStoStockData',
    method: 'get',
    params: query
  });
}
//库区映射剂型
export function findStoAreaList(query) {
  return request({
    url: '/basic/stoArea/findStoAreaAll',
    method: 'get',
    params: query
  });
}
//库区映射erp库区
export function findErpStock(query) {
  return request({
    url: '/basic/stoArea/findErpStock',
    method: 'get',
    params: query
  });
}
//编辑ERP剂型
export function queryErpJiXing(query) {
  return request({
    url: '/yxl/bill/queryErpJiXing',
    method: 'get',
    params: query
  });
}
//获取剂型的修改的内容
export function queryJiXingMap(query) {
  return request({
    url: '/yxl/bill/queryJiXingMap',
    method: 'get',
    params: query
  });
}
//提交剂型
export function insertJiXingMap(query) {
  return request({
    url: '/basic/stoArea/insertJiXingMap',
    method: 'post',
    data: query
  });
}
//删除剂型
export function deleteErpMap(query) {
  return request({
    url: '/basic/stoArea/deleteErpMap',
    method: 'post',
    data: query
  });
}
//库区新增提交
export function insertWmsErpStockMap(query) {
  return request({
    url: '/basic/stoArea/insertWmsErpStockMap',
    method: 'post',
    data: query
  });
}
//移库管理
export function queryWarehouseMoveList(query) {
  return request({
    url: '/yxl/billReport/queryWarehouseMoveList',
    method: 'get',
    params: query
  });
}
//追溯码列表
export function  queryBarCode(query) {
  return request({
    url: '/yxl/billReport/queryBarCode',
    method: 'get',
    params: query
  });
}
//追溯码详情
export function  queryBarCodeByParentCode(query) {
  return request({
    url: '/yxl/billReport/queryBarCodeByParentCode',
    method: 'get',
    params: query
  });
}
//收货管理
export function queryErpReceipt(query) {
  return request({
    url: '/yxl/bill/queryErpReceipt',
    method: 'get',
    params: query
  });
}
//拒收操作
export function rejectReceiver(query) {
  return request({
    url: '/yxl/bill/rejectReceiver',
    method: 'post',
    params: query
  });
}
//收货管理详情
export function queryErpReceiptDetail(query) {
  return request({
    url: '/yxl/bill/queryErpReceiptDetail',
    method: 'get',
    params: query
  });
}
//批量收货
export function confirmReceipt(query) {
  return request({
    url: '/yxl/bill/confirmReceipt',
    method: 'post',
    params: query
  });
}
//单独收货
export function confirmReceiptBySpid(query) {
  return request({
    url: '/yxl/bill/confirmReceiptBySpid',
    method: 'post',
    params: query
  });
}
//已收货列表
export function queryWmsReceived(query) {
  return request({
    url: '/yxl/bill/queryWmsReceived',
    method: 'get',
    params: query
  });
}
//已收货详情
export function queryWmsReceiptLog(query) {
  return request({
    url: '/yxl/bill/queryWmsReceiptLog',
    method: 'get',
    params: query
  });
}
//库存日志
export function queryStoStockLog(query) {
  return request({
    url: '/yxl/stock/queryStoStockLog',
    method: 'get',
    params: query
  });
}
//人员KPI列表
export function queryUserKpi(query) {
  return request({
    url: '/yxl/stock/queryUserKpi',
    method: 'get',
    params: query
  });
}


